ozi.o nmea.o text.o html.o palmdoc.o netstumbler.o hsa_ndv.o \
igc.o brauniger_iq.o shape.o hiketech.o glogbook.o coastexp.o \
vcf.o overlay.o kml.o google.o lowranceusr.o an1.o tomtom.o \
- tef_xml.o maggeo.o pathaway.o vitosmt.o gdb.o bcr.o
+ tef_xml.o maggeo.o pathaway.o vitosmt.o gdb.o bcr.o coto.o
FILTERS=position.o duplicate.o arcdist.o polygon.o smplrout.o reverse_route.o sort.o stackfilter.o trackfilter.o dopfilt.o
-F a_to_b.bcr
OPENOFFICE
- Tab seperated export-all (except geocahing data) file format.
+ Tab seperated export-all (except geocaching data) file format.
Intended to serve as source for number-processing applications
like OpenOffice, Ploticus and others. Tab was chosen as delimiter
because it is a) supported by both OpenOffice and Ploticus and
b) is not ',', so you can use 'sed -i "s/./,/g" <x>.csv' to adapt it to
locales where ',' is used as decimal seperator.
Contributed by Tobias Minich.
+
+ COTO
+ Format for cotoGPS, a Palm GPS program. It can read both
+ track and marker (waypoint) files. It is currently unable
+ to write track files, so only marker files can be written. The
+ marker categories are written to and read from the icon
+ description. The 'Not Assigned' category leaves the icon
+ description empty on read. Currently geocache info is ignored.
+
+ Options:
+
+ trackname (input) - Name for the track. Defaults to
+ the pdb name or file name if the pdb name is the default
+ ('cotoGPS TrackDB'). This is currently (Coto Version 1.3.1)
+ always the case.
+ zerocat (output) - Name for the Palm 'Not Assigned' category.
+ Defaults to 'Not Assigned'.
+ There is also a debugging option called 'internals' which
+ takes a XCSV delimiter value. It writes some internal
+ values (distance, arc, x and y) of the cotoGPS track
+ format to the notes field.
+
+ URL: http://core.de/~coto/projects/cotogps/
+ Contributed by Tobias Minich.
DATA FILTERS
setshort_whitespace_ok(mkshort_wr_handle, 1);
if ((global_opts.synthesize_shortnames && wpt->description) || (!wpt->shortname)) {
+#if 0
if (wpt->shortname)
xfree(wpt->shortname);
wpt->shortname = mkshort_from_wpt(mkshort_wr_handle, wpt);
+#else
+abort();
+#endif
}
if ((wpt->description) && ((strlen(wpt->description) > MAX_MARKER_NAME_LENGTH) || (strcmp(wpt->description, wpt->shortname)))) {
if ((wpt->notes) && (strcmp(wpt->description, wpt->notes))) {
${PNAME} -i glogbook -f ${TMPDIR}/glog.xml -o gpx -F ${TMPDIR}/glog2.gpx
compare ${TMPDIR}/glog1.gpx ${TMPDIR}/glog2.gpx
+#
+# Dop filter test
+#
+rm -f ${TMPDIR}/dop*
+sed '/<hdop>50/d' reference/dop-test.gpx | ${PNAME} -i gpx -f - -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-hdop.ref
+${PNAME} -i gpx -f reference/dop-test.gpx -x dop,hdop=50 -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-hdop.fil
+compare ${TMPDIR}/dop-hdop.ref ${TMPDIR}/dop-hdop.fil
+sed '/<vdop>50/d' reference/dop-test.gpx | ${PNAME} -i gpx -f - -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-vdop.ref
+${PNAME} -i gpx -f reference/dop-test.gpx -x dop,vdop=50 -o openoffice -F - | sed 's/RPT...//g' > ${TMPDIR}/dop-vdop.fil
+compare ${TMPDIR}/dop-vdop.ref ${TMPDIR}/dop-vdop.fil
+
+#
+# cotoGPS test
+#
+rm -f ${TMPDIR}/coto*
+# Track reading
+${PNAME} -i coto -f reference/cototesttrack.pdb -o openoffice -F ${TMPDIR}/cototrack.csv
+compare reference/cototesttrack.csv ${TMPDIR}/cototrack.csv
+# Marker read/write
+${PNAME} -i coto -f reference/cototestmarker.pdb -o openoffice -F ${TMPDIR}/cotomarker.csv
+${PNAME} -i gpx -f reference/cototestmarker.gpx -o openoffice -F ${TMPDIR}/cotomarkergpx.csv
+compare ${TMPDIR}/cotomarker.csv ${TMPDIR}/cotomarkergpx.csv
+${PNAME} -i gpx -f reference/cototestmarker.gpx -o coto -F ${TMPDIR}/cotomarker.pdb
+compare reference/cototestmarker.pdb ${TMPDIR}/cotomarker.pdb
+
exit 0
extern ff_vecs_t vitosmt_vecs;
extern ff_vecs_t gdb_vecs;
extern ff_vecs_t bcr_vecs;
+extern ff_vecs_t coto_vecs;
static
vecs_t vec_list[] = {
"Motorrad Routenplaner (Map&Guide) .bcr files",
"bcr"
},
+ {
+ &coto_vecs,
+ "coto",
+ "cotoGPS for PalmOS",
+ NULL
+ },
{
NULL,
NULL,